package cn.dhnep.demo.service.impl;

import cn.dhnep.demo.pojo.Horseman;
import cn.dhnep.demo.mapper.HorsemanMapper;
import cn.dhnep.demo.service.HorsemanService;
import cn.dhnep.demo.util.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dhn
 * @since 2021-08-24
 */
@Service
public class HorsemanServiceImpl extends ServiceImpl<HorsemanMapper, Horseman> implements HorsemanService {


    @Resource
    private HorsemanMapper horsemanMapper;

    @Override
    public List<Horseman> selectPageList(Page page) {
        return horsemanMapper.selectPageList(page);
    }

    @Override
    public Integer selectPageCount(Page page) {
        return horsemanMapper.selectPageCount(page);
    }

    @Override
    public int horsemanAdd(Horseman horseman) {
        return horsemanMapper.horsemanAdd(horseman);
    }

    @Override
    public Horseman idqueryhorseman(Horseman horseman) {
        return horsemanMapper.idqueryhorseman(horseman);
    }

    @Override
    public int horsemanUpda(Horseman horseman) { return horsemanMapper.horsemanUpda(horseman); }
}
